<!--<?php print <<<EOT
--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$db_charset" />
<title>$webPageTitle - Powered by PHPWind</title>
<meta name="generator" content="phpwind  房产 v2.0" />
<meta name="description" content="$metaDescription" />
<meta name="keywords" content="$metaKeywords" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel='archives' title='$db_bbsname' href='$db_bbsurl/simple' />
<base id="headbase" href="$db_bbsurl/" />
<link rel="stylesheet" type="text/css" href="$imgpath/pw_core.css" />
<link rel="stylesheet" type="text/css" href="mode/house/images/head.css" />
<link rel="stylesheet" type="text/css" href="mode/house/images/style.css" />
<script type="text/javascript" language="JavaScript" src="js/pw_ajax.js"></script>
<script type="text/javascript" language="JavaScript" src="js/core/core.js"></script>

<script type="text/javascript" src="mode/house/js/jquery-1.4.min.js"></script>
<script type="text/javascript" src="mode/house/js/pw-hcommon.js"></script>
<script language="JavaScript">
jQuery(function(){
	/*-------搜索框--------*/
	jQueryq=jQuery("#q");
	var defaultValue = '请输入楼盘名称';
	if(jQueryq.val() ==  defaultValue)jQueryq.css("color","#898989");
	jQueryq.focus(function(){
		if(jQuery(this).val()==defaultValue)jQuery(this).val("");
		jQuery(this).css("color","");
	}).blur(function(){
		if(!jQuery(this).val()||jQuery(this).val()==defaultValue){
			jQuery(this).css("color","#898989");
			jQuery(this).val(defaultValue);
		}
	})
	
	/*-----伪selet框--J_select("选择器","下拉框高度")----*/
	J_select(".select-box",420);
})
	var imgpath = '$imgpath';
	var verifyhash = '$verifyhash';
	var modeimg = '$pwModeImg';
	var modeBase = '$baseUrl';
	var winduid = '$winduid';
	var windid	= '$windid';
	var groupid	= '$groupid';
	var cateid	= '$cateid';
	var mode = '$db_mode';
</script>
</head>
<!--#
$bodyAdd = '';
if ($SCR=='index') {
	$bodyAdd = 'id="index"';
	$adCkey = 'Mode.House.Index.Header';
} elseif ($SCR=='list') {
	$adCkey = 'Mode.House.List.Header';
} elseif ($SCR=='info') {
	$adCkey = 'Mode.House.Info.Header';
} else {
	$bodyAdd = '';
}
#-->
<body {$bodyAdd}>
<div id="top-bar">
	<div class="wrap">
<!--#
include M_P.'application/front/viewer/house_headerbar.htm';
#-->
	</div>
</div>
<div id="pw-house">
<!--#
include M_P.'application/front/viewer/sale_header.htm';
#-->
		<!--/div-->
		
<!-- 头部广告位 start -->		
<!--
EOT;
list($htmlAdvert,$arrayAdvert) = pwAdvert($adCkey,'','','');
if($htmlAdvert){
print <<<EOT
-->
<div class="mb">$htmlAdvert</div>
<!--
EOT;
}print <<<EOT
-->
<!-- 头部广告位 end -->
		<div id="search">
		<script type="text/javascript">
		jQuery(document).ready(function(){
			jQuery("#search-form").submit(function(){
				if (jQuery("input[name='name']").val() == '请输入楼盘名称') {
					jQuery("input[name='name']").attr("value", '');
				}
			});
		});
		</script>
			<form id="search-form" method="post" action="{$houseBaseUrl}q=list">
				<div class="select-box">
					<input type="hidden" value="" name="area" />
					<span>区域不限</span>
					<ul>
						<li val="">区域不限</li>
<!--#
foreach ((array)$areaField as $key => $value) {
#-->
						<li val="$key">{$value}</li>
<!--#
}
#-->
					</ul>
				</div>
				<div class="select-box">
					<input type="hidden" value="" name="aveprice" />
					<span>价格不限</span>
					<ul>
						<li val="">价格不限</li>
<!--#
foreach ((array)$avepriceField as $key => $value) {
#-->
						<li val="$key">{$value}</li>
<!--#
}
#-->
					</ul>
				</div>
				<div class="select-box">
					<input type="hidden" value="" name="property" />
					<span>类型不限</span>
					<ul>
						<li val="">类型不限</li>
<!--#
foreach ((array)$propertyField as $key => $value) {
#-->
						<li val="$key">{$value}</li>
<!--#
}
#-->
					</ul>
				</div>
				<div class="select-box">
					<input type="hidden" value="" name="paystatus" />
					<span>装修不限</span>
					<ul>
						<li val="">装修不限</li>
<!--#
foreach ((array)$fitmentField as $key => $value) {
#-->
						<li val="$key">{$value}</li>
<!--#
}
#-->
					</ul>
				</div>
				<div class="select-box">
					<input type="hidden" value="" name="status" />
					<span>状态不限</span>
					<ul>
						<li val="">状态不限</li>
<!--#
foreach ((array)$buildStatus as $key => $value) {
#-->				
						<li val="$key">{$value}</li>
<!--#
}
#-->						
					</ul>
				</div>
				<input type="text" name="name" id="q" value="请输入楼盘名称" />
				<button id="q-btn" type="submit">搜 索</button>
			</form>
			<div id="hot-keys">
				<dl>
					<dt>热门搜索：</dt>
					<dd>
<!--#
if ($house_hottag) {
foreach ($house_hottag as $key => $value) {
#-->
						<a href="{$value['url']}">{$value['name']}</a>&nbsp;
<!--# }} #-->
					</dd>
				</dl>
			</div>
		</div>
	<div id="main">
<!--
EOT;
?>-->